//登录api

import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: '/biz/loginByPwd',
    method: 'post',
    data
  })
}

// 用户信息
export function getInfo(token) {
  return request({
    url: '/biz/getUserMessage',
    method: 'POST',
    // params: { token }
  })
}

// 获取验证码
export function getImageCode() {
  return request({
    url: '/biz/getImageCode',
    method: 'POST'
  })
}

// 退出登录
export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
